home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 8 / Power CD-ROM 8.iso / dos / at800xl / xf25.doc < prev    next >
Text File  |  1994-12-05  |  18KB  |  418 lines

  1.  
  2. PC Xformer 2.5 - The Atari 800XL Emulator For MS-DOS Compatible PCs
  3. ===================================================================
  4.  
  5. November 10, 1994.
  6.  
  7. Branch Always Software
  8. 14150 N.E. 20th Street
  9. Suite 302
  10. Bellevue, WA  98007
  11. U.S.A.
  12.  
  13. Program by Darek Mihocka. Many thanks to Danny Miller and Bob Woolley for 
  14. their beta testing and technical help, to Greg Tibbets for the many Rana 
  15. drives, to Jan Gray for sharing cool programming tricks, to Bill Kendrick
  16. for writing the very cool manual for 3.0, and to Nick Kennedy for developing
  17. the SIO2PC cable which makes life so much easier. 
  18.  
  19.  
  20. Copy this program!
  21. ------------------
  22.  
  23. PC Xformer 2.5 is a free emulator for MS-DOS users who wish to run their old
  24. Atari 400/800 and Atari 800XL software on their PCs. The file XF25.ZIP may be
  25. freely redistributed under the condition that the contents of the ZIP file are
  26. not modified in any way, and that no fee is charged for the software other than
  27. reasonable long distance and online charges for downloads.
  28.  
  29. These files must be present in the XF25.ZIP archive:
  30.  
  31.     XF25.EXE     - an MS-DOS program that is the PC Xformer 2.5 emulator
  32.     XF25.DOC     - this documentation file
  33.     DOS25.XFD    - ST Xformer disk image containing Atari DOS 2.5 files
  34.     MYDOS45.ATR  - SIO2PC disk image containing MyDOS 4.5 files
  35.     ATARIOSB.ROM - Atari 800 operating system
  36.     ATARIXL.ROM  - Atari 800XL operating system
  37.     ATARIBAS.ROM - Atari Basic
  38.     DEMOS1.XFD   - disk image containing Atari 800XL BASIC demos
  39.     DEMOS2.XFD   - disk image containing Atari 800XL machine language demos
  40.  
  41.  
  42. Quick Start
  43. -----------
  44.  
  45. If you have previously used PC Xformer 2.0, then using 2.5 is exactly the same!
  46. The only new key you have to learn is F12, describled below. Otherwise,
  47. everything will work as before, only better!
  48.  
  49. To just quickly run PC Xformer 2.5, type XF25 from the DOS prompt. The familiar
  50. blue and white Atari Basic screen will appear with the READY prompt. Type in a
  51. small Basic program and you'll see it's just like an Atari 400/800 or 800XL!
  52.  
  53. Use the F12 key on the PC's keyboard to switch between Atari 800XL mode and
  54. Atari 800 mode. The current mode is displayed at the bottom of the screen.
  55.  
  56. Use the F10 key to "system reset". Press F10 while holding the Shift key to
  57. toggle Atari Basic on or off.
  58.  
  59. In Atari 800XL mode you have access to the new graphics modes (GR.9 through
  60. GR.15), plus you can run the newer software designed for the 800XL. Switch
  61. back to Atari 800 mode to run older software.
  62.  
  63. Press F5 to exit back to the DOS prompt. Then read the rest of this document!
  64.  
  65.  
  66. Hardware requirements
  67. ---------------------
  68.  
  69. PC Xformer 2.5 is a 16-bit MS-DOS application. It is designed to run on most
  70. PCs with minimum hardware requirements. It requires only a 286 compatible CPU,
  71. so it is compatible with all 286, 386, 486 and Pentium based PC, as well as any
  72. PC that can emulate the 286. For example, the Mac running SoftAT, the PowerMac
  73. running SoftWindows, and any Windows NT based RISC machine.
  74.  
  75. PC Xformer 2.5 also requires a VGA compatible display, and about 300K of RAM.
  76.  
  77.  
  78. Installing Disks
  79. ----------------
  80.  
  81. PC Xformer 2.5 uses the same 90K, 130K, and 180K disk images used by our
  82. older ST Xformer 8-bit emulator, and it also supports reading and writing
  83. to SIO2PC generated disk images.
  84.  
  85. If you don't know what SIO2PC is, call your Atari dealer and ask. It's a
  86. cool cable that you connect between your real Atari 800 computer and your
  87. PC which allows you to blast over all of your 8-bit disks to your PC and
  88. store them as disk images (the 90K, 130K, or 180K data files).
  89.  
  90. If you specify virtual disk files and/or MS-DOS files after the XF25, those
  91. will be installed as Atari disk drives. For example, type:
  92.  
  93. XF25 DOS25.XFD DEMOS1.XFD
  94.  
  95. to boot up DOS 2.5 from D1: and then access demo files from D2:. Using the
  96. same example, once you are in Atari Basic type:
  97.  
  98. RUN"D2:ATARI800.BAS"
  99.  
  100. to run a demo program. Or type DOS to go to the DOS 2.5 file manager.
  101. Machine language programs (typically files ending with .OBJ or .COM) should
  102. be run with Basic disabled by pressing Shift+F10 to reboot without Basic.
  103.  
  104.  
  105. Features
  106. --------
  107.  
  108. Many of the limitations of our old ST Xformer emulator and other clone Atari
  109. emulators have been eliminated in PC Xformer. PC Xformer is written mostly
  110. in machine language and takes full advantage of the PC hardware.
  111.  
  112. Features common to both PC Xformer 2.5 and PC Xformer 3.0 include:
  113.  
  114.     - 48K Atari 400/800 emulation
  115.  
  116.     - 64K Atari 800XL emulation with "RAM under ROM" memory
  117.  
  118.     - allows user installable patches to the OS and BASIC
  119.  
  120.     - displays all ANTIC text and graphics modes, including GTIA modes
  121.  
  122.     - 256 color GTIA color palette
  123.  
  124.     - displays player missile graphics (no collision detection)
  125.  
  126.     - horizontal and vertical fine scrolling
  127.  
  128.     - supports display list interrupts, IRQ, and NMI interrupts
  129.  
  130.     - reads and writes to ST Xformer and SIO2PC generated disk images
  131.  
  132.     - reads MS-DOS files directly from within Atari DOS
  133.  
  134.     - switch Atari BASIC on/off with one keystroke
  135.  
  136.     - switch between Atari 400/800 and Atari 800XL emulation with one keystroke
  137.  
  138.     - joystick emulation using the keyboard cursor keys
  139.  
  140.     - full speed emulation on a 386/33 or faster
  141.  
  142.     - slow and fast modes of emulation to take advantage of fast PCs
  143.  
  144.     - compatible with all VGA cards
  145.  
  146.  
  147. In addition, PC Xformer 3.0 adds features including these:
  148.  
  149.     - 130XE emulation with 256K of extended XE memory
  150.  
  151.     - player missile graphics with full collision detection
  152.  
  153.     - on-the-fly disk image swapping
  154.  
  155.     - 4 voices of sound, printer, and modem support
  156.  
  157.     - real joystick support
  158.  
  159.     - 386 optimized code for faster speed
  160.  
  161.     - over 1 megabyte of sample Atari 8-bit programs
  162.  
  163.     - over 40 pages of 8-bit Atari reference documentation
  164.  
  165.  
  166. Below is a list of processors and the approximate speed of emulation relative
  167. to an Atari 800:
  168.  
  169.     - 286/16     - 0.3
  170.     - 386SX/20   - 0.5
  171.     - 386DX/33   - 1.0
  172.     - 486DX/33   - 2.0
  173.     - 486DX2/66  - 4.0
  174.     - Pentium/90 - 8.0
  175.  
  176. 486 and Pentium users can use the slow/fast option to slow down the emulator
  177. to normal Atari 800 speed or let it run as fast as possible.
  178.  
  179.  
  180. Upgrading to PC Xformer 3.0
  181. ---------------------------
  182.  
  183. PC Xformer 3.0 can be ordered for $29.95 U.S. directly from Branch Always
  184. Software at the address above, or from these and other fine Atari dealers:
  185.  
  186.     ACN (Holland and Germany)        phone: +31 23351100   fax: +31 23361444
  187.     B & C Computervisions (U.S.A.)   phone: 408-986-9960   fax: 408-986-9968
  188.     FaST Club (U.K.)                 phone: +44 602445250  fax: +44 602445305
  189.     Mid Cities Computers (U.S.A.)    phone: 310-867-0626   fax: 310-920-8933
  190.     Ordosoft (France)                phone: +33 47547942   fax: +33 47513726
  191.     Paragon Computers (Australia)    phone: +61 92213216   fax: +61 93258251
  192.     Rising Star Computers (U.S.A.)   phone: 800-252-2787   fax: 513-254-7970
  193.     Toad Computers (U.S.A.)          phone: 800-448-TOAD   fax: 410-544-1329
  194.  
  195.  
  196. The keyboard, cursor keys, and joystick emulation
  197. -------------------------------------------------
  198.  
  199. All letter and number keys function as on the 800XL keyboard. Punctuation
  200. keys will give the characters shown on the PC keyboard, not the characters
  201. that appear on the Atari keyboard. i.e. Shift+2 gives the @ character, not ".
  202.  
  203. If you are used to using the Atari keyboard and want keys to work as they
  204. do on the Atari keyboard, keep in mind that PC keyboards come in every style
  205. and layout and so it is impossible to do that. Simply spend a few minutes
  206. looking at they keys as you type and you will get used to your particular
  207. PC's keyboard layout.
  208.  
  209. F1 F2 F3 F4 function as cursor keys (up, down, left, right), similar to the
  210. four function keys on a 1200XL.
  211.  
  212. F5 exits back to DOS. Remember this when you want to exit PC Xformer!!
  213.  
  214. F6 is the HELP key.
  215.  
  216. F7 is the START key.
  217.  
  218. F8 is the SELECT key.
  219.  
  220. F9 is the OPTION key.
  221.  
  222. F10 is RESET. Press Shift+F10 to reset and toggle Basic on or off.
  223.  
  224. F12 switches between emulating an Atari 800XL and an Atari 400/800.
  225.  
  226. Insert and Delete insert and delete a character.
  227.  
  228. Shift+Insert and Shift+Delete insert and delete a line of text.
  229.  
  230. Home is the CLEAR key.
  231.  
  232. End is the BREAK key.
  233.  
  234. The ` key is the Atari logo key used to toggle inverse text on/off.
  235.  
  236. Page Up and Page Down are used to move the display window up or down a pixel
  237. at a time. This allows you to center the screen for programs whose display
  238. extends either too far up or too far down.
  239.  
  240. The numeric keypad functions in two modes. When the Num Lock is set, the
  241. numeric keypad produces numbers. When Num Lock is not set, the keys 2 4 6 8
  242. function as a 4 direction joystick. 0 on the keypad is the fire button.
  243.  
  244. If your keyboard has an "inverted T" set of cursor keys, those also function
  245. in two modes. By themselves they function as a 4 direction joystick. When
  246. pressed with the Ctrl key, they act as cursor keys (same as F1 F2 F3 F4).
  247.  
  248. Due to differences in the layout of the Atari 800XL and PC keyboards,
  249. the keys + - = * do not function as cursor keys. You must use F1 F2 F3 F4 or
  250. the PC's cursor keys.
  251.  
  252. Some PC keyboards have an 8-way set of cursor keys, containing the usual
  253. up down left and right cursor keys, plus four diagonal keys. Pressing those
  254. diagonal keys will generate diagonal joystick movements as expected.
  255.  
  256. Pressing Ctrl and a letter key will give you the graphics characters as on
  257. the Atari 800XL. However, the two graphics characters produced by pressing
  258. Ctrl+, and Ctrl+. can be obtained on the PC keyboard by typing Ctrl+[ and
  259. Ctrl+].
  260.  
  261. Caps Lock functions as the Atari's Caps key, not as a true Caps Lock. Press
  262. Caps Lock once to enter lower case mode, then press Shift+Caps Lock to go
  263. back to upper case mode.
  264.  
  265. Scroll Lock toggles fast/slow mode. Scroll Lock on is the slow mode. Use this
  266. feature only on 486 and Pentium machine. On slower machines it will cause the
  267. emulator to slow down too much. See below.
  268.  
  269. To pause a program or a listing, press the PC's Pause key instead of Ctrl+1.
  270.  
  271. In place of Ctrl+3 press break.
  272.  
  273. Ok, got that? Just spend a few minutes playing around with the PC's keyboard
  274. and things will start to make sense.
  275.  
  276.  
  277. Slow/Fast modes
  278. ---------------
  279.  
  280. Scroll Lock toggles the slow/fast speed of the emulator. By default the
  281. emulator is in fast mode, meaning it runs as fast as possible. On a 286 or
  282. 386 based PC, PC Xformer 2.5 should run at or slightly below the speed of an
  283. 8-bit Atari so leave it in the default setting. On a 486 or Pentium, the speed
  284. may be too fast for some games, although the faster speed may be just what is
  285. needed for some slow BASIC games. In any case, if you do need to slow down the
  286. emulator, activate Scroll Lock to place the emulator into slow speed mode.
  287. At this point the emulator "applies the brakes" and attempts to drop down to
  288. about normal speed. Press Scroll Lock again to switch back to fast mode.
  289.  
  290.  
  291. Disk drive emulation
  292. --------------------
  293.  
  294. Now we come to what to some people is the most confusing part about using an
  295. emulator, whether PC Xformer, ST Xformer, DOS emulators on UNIX, or the many
  296. different Apple II emulators out there - disks. It's quite simple once you
  297. understand the concepts so let me try to explain.
  298.  
  299. With Gemulator I lucked out. Both the Atari ST and most PCs use the exact same
  300. 3.5 inch floppy disks and they even format the disks the exact same way. What
  301. that means to you is that you can take a disk from an Atari ST and just pop
  302. it into a PC and just read the files directly. No special cables, no special
  303. adjustments to your disk drive.
  304.  
  305. Not so with most computers. A PC's 5.25" floppy disk drive can't directly
  306. read an Apple II's 5.25" floppy disks. An old Mac II can't directly read
  307. Atari ST disks. And of course, the bummer, a PC's 5.25" floppy disk drive 
  308. can't read Atari 8-bit floppy disks.
  309.  
  310. So what to do? The same problem existed on the Atari ST with ST Xformer. I
  311. tried several different techniques. ST Xformer 1.0 emulated Atari DOS and
  312. faked up the D: device, so that whatever filename you specified actually
  313. accessed that file on the Atari ST's disk. ST Xformer II did the same thing
  314. but called it the F: device.
  315.  
  316. Unfortunately most (well, a lot) of Atari 8-bit software bypasses Atari DOS
  317. and read sectors from the disk directly. So the F: thing doesn't work too well
  318. for them, or boot disk that don't use a DOS at all.
  319.  
  320. So I did what all of the Apple II emulators and most other emulators do: use
  321. virtual disks. A virtual disk is just a large data file that contains all the
  322. information of a single floppy disk.
  323.  
  324. A virtual disk containing all the information of an Atari 8-bit single density
  325. disk must hold all the information from the 720 sectors on that disk. At
  326. 128 bytes per sector, 720*128 = 92160 bytes. And that is exactly how large
  327. ST Xformer virtual disk files are. 92160 bytes. Every byte in the file
  328. corresponds to a byte originally found on the disk.
  329.  
  330. The question still remains how to create a virtual disk file. Shortly after
  331. releasing ST Xformer II, I realized that the Atari ST's parallel printer port
  332. is very much like the Atari 800's serial port. One has 25 pins, the other has
  333. 13 pins. Big deal. What the pins do is very similar, and so I developed a
  334. cable known as the ST Xformer Cable (what else!) which allowed you to directly
  335. connect an Atari 810 or 1050 disk drive to the Atari ST. Then using some 
  336. software, the ST read each of the 720 sectors on the Atari 8-bit disk and
  337. stored those 92160 bytes into a file (usually with a .SD or .XFD extender).
  338.  
  339. And that is how you create a virtual disk on the Atari ST. If you are an Atari
  340. ST user and have user ST Xformer II in the past, then all of your Atari 8-bit
  341. software is already in virtual disk format and ready for use on PC Xformer!
  342.  
  343. If not, and you don't know any Atari ST users who have the ST Xformer Cable,
  344. don't despair. There are still plenty of ways to transfer a file to the PC.
  345.  
  346. About 4 years ago an Atari user by the name of Nick Kennedy tackled exactly
  347. this problem. And he developed a cable called the SIO2PC cable, to directly
  348. connect an Atari 8-bit computer to the PC.
  349.  
  350. Now of course he had no clue that 4 years later someone would come around and
  351. write an emulator, so the reason for his cable was to use a PC with its big
  352. PC hard disk to store Atari 8-bit files. Basically, using a PC as a very large
  353. hard disk for an Atari 800. By daisy chaining both a PC as well as a real
  354. Atari 8-bit disk drive onto the cable you are then able to copy files from
  355. the 8-bit disk drive to the PC.
  356.  
  357. As it happens, guess how the SIO2PC software stores the 8-bit files on the PC
  358. once they're transfered over the cable? In virtual disks of course! In fact,
  359. virtual disks created by SIO2PC are almost identical to those created by
  360. the ST Xformer cable, and so PC Xformer 2.5 supports both types of virtual
  361. disk files. (The difference is an extra 16 byte header that SIO2PC uses).
  362.  
  363. The SIO2PC cable has been around for 4 years and is fairly well known in
  364. the Atari 8-bit community, so this document will not describe how to build
  365. or use the SIO2PC cable. Contact your local Atari dealer, your user group,
  366. download files #5281 and #6414 from the Atari 8-bit roundtable on GEnie, or
  367. best yet, contact Nick Kennedy directly at 501-967-3843 or write to him at:
  368.  
  369. Nick Kennedy
  370. 300 South Vancouver St.
  371. Russellville, AR  72801
  372.  
  373. There is one other very common way to transfer a file between any two
  374. computers, and that is to use a null modem cable or two modems. Whenever you
  375. call a BBS with your modem and download a file, you are transfering a file
  376. from one computer (whether it be a PC or Mac or ST) to another.
  377.  
  378. There are thousands of public domain and shareware Atari 8-bit programs
  379. available for download from BBSs and online services. Download these files
  380. to your PC using whatever DOS or Windows based terminal software you normally
  381. used (that's most likely how you obtained this copy of PC Xformer 2.5)
  382.  
  383. Once the file is on your PC, copy it to the same directory that you run
  384. PC Xformer 2.5 from. Then specify the file on the XF25 command line as the
  385. second file. For example, let's say you downloaded a file called BUDGET.BAS.
  386. Typing this:
  387.  
  388. XF25 DOS25.XFD BUDGET.BAS
  389.  
  390. causes PC Xformer 2.5 to boot up using DOS25.XFD as drive D1:, and the file
  391. BUDGET.BAS will appear as the only file on drive D2:. Then using DOS 2.5
  392. (or any other Atari DOS) copy the file from D2: to D1: so that it is now
  393. on a virtual disk. You want to eventually copy all your Atari 8-bit files into 
  394. virtual disk image files. 
  395.  
  396. PC Xformer 2.5 allows for up to 8 files to be specified on the XF25 command
  397. line. The first file MUST be a virtual disk, since it must contain a valid
  398. DOS on it to install as drive D1:. The remaining 7 files may either specify
  399. other virtual disk files, or MS-DOS files which will automatically appear
  400. as virtual disks as described above.
  401.  
  402. Note that by default DOS 2.5 will only access 2 disk drives (D1: and D2:).
  403. See you DOS manual on how to expand that, or use a different DOS (such as
  404. MyDOS 4.5) which supports up to 8 drives.
  405.  
  406. Note that there is one other method to transfer 8-bit files to the PC. It
  407. seems that the PC's 5.25 inch floppy disk drive actually CAN read Atari disks
  408. if they are formatted double density and you run a special utility. I have not
  409. seen this work reliably, but people claim it works. So try it out if you can.
  410.  
  411. And now you are set to run PC Xformer 2.5 to your heart's content! But don't
  412. forget to upgrade to PC Xformer 3.0 and have a complete 130XE emulator with
  413. 40 pages of reference documentation.
  414.  
  415. Darek Mihocka, Owner of Branch Always Software
  416. Creator of ST Xformer, Quick ST, PC Xformer, and Gemulator
  417.  
  418.